import request from "../../sdk/utils/request";

export const pageSelect = (data) => {
  return request({
    url: "/api/role/pageSelect",
    method: "post",
    data: data,
  });
};

export const getAllRole = () => {
  return request({
    url: "/api/role/getAll",
    method: "get",
  });
};

export const add = (data) => {
  return request({
    url: "/api/role/add",
    method: "post",
    data: data,
  });
};

export const update = (data) => {
  return request({
    url: "/api/role/update",
    method: "post",
    data: data,
  });
};

export const remove = (id) => {
  return request({
    url: "/api/role/remove",
    method: "get",
    params: {
      id: id,
    },
  });
};
